// vite.config.ts
import { loadEnv } from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite@4.5.3_@types+node@18.19.31_less@4.2.0_terser@5.30.3/node_modules/vite/dist/node/index.js";
import { resolve } from "path";
import WindiCSS from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-windicss@1.9.3_vite@4.5.3/node_modules/vite-plugin-windicss/dist/index.mjs";
import vue from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/@vitejs+plugin-vue@4.6.2_vite@4.5.3_vue@3.4.22/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/@vitejs+plugin-vue-jsx@1.3.10/node_modules/@vitejs/plugin-vue-jsx/index.js";
import { createSvgIconsPlugin } from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/file+sutpc-pak+vite-plugin-sutpc-svg-icons-1.0.8.tgz_vite@4.5.3/node_modules/vite-plugin-sutpc-svg-icons/index.js";
import vitePluginSutpcLibStaticImport from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/file+sutpc-pak+vite-plugin-sutpc-lib-static-import-1.0.17.tgz_rollup@2.79.1/node_modules/vite-plugin-sutpc-lib-static-import/index.js";
import vitePluginSutpcLessDeep from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/file+sutpc-pak+vite-plugin-sutpc-less-deep-1.0.5.tgz/node_modules/vite-plugin-sutpc-less-deep/index.js";
import vitePluginPurgeIcons from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-purge-icons@0.9.2_vite@4.5.3/node_modules/vite-plugin-purge-icons/dist/index.mjs";
import vitePluginSutpcIconPark from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/file+sutpc-pak+vite-plugin-sutpc-icon-park-1.0.5.tgz_vue@3.4.22/node_modules/vite-plugin-sutpc-icon-park/index.js";
import vitePluginSutpcCommon from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/file+sutpc-pak+vite-plugin-sutpc-common-1.2.4.tgz/node_modules/vite-plugin-sutpc-common/index.js";

// vite-plugin-sutpc-public-path.ts
function vite_plugin_sutpc_public_path_default(path) {
  let base = "";
  return {
    configResolved(config) {
      base = config.base;
    },
    transform(code, id) {
      const isDev = process.env.VITE_USER_NODE_ENV === "development";
      const replacer = isDev ? "/" : path || base;
      return code.replace(/\[publicPath\]/g, replacer);
    },
    enforce: "pre"
  };
}

// vite.config.ts
import viteCompression from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-compression@0.5.1_vite@4.5.3/node_modules/vite-plugin-compression/dist/index.mjs";
import { ViteEjsPlugin } from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-ejs@1.7.0_vite@4.5.3/node_modules/vite-plugin-ejs/index.js";
import externalGlobals from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/rollup-plugin-external-globals@0.6.1_rollup@2.79.1/node_modules/rollup-plugin-external-globals/index.js";
var root = process.cwd();
var pathResolve = (dir) => resolve(root, ".", dir);
var vite_config_default = ({ command, mode }) => {
  const isBuild = command === "build";
  const argMode = process.argv[3] === "--mode" ? process.argv[4] : process.argv[3];
  const configDir = pathResolve("config");
  const env = loadEnv(isBuild ? mode : argMode, configDir);
  const publicPath = env.VITE_APP_MODE === "LIB" ? `/bizapp/${env.VITE_APP_KEY}/front/` : "/";
  // const publicPath = `/bizapp/${import.meta.env.VITE_APP_KEY}/front`;
  const buildOptions = env.VITE_APP_MODE === "LIB" ? {
    // 库模式定制
    outDir: env.VITE_OUT_DIR + "/" + env.VITE_APP_KEY,
    lib: {
      entry: resolve("src/lib.ts"),
      name: env.VITE_APP_KEY,
      fileName: "lib"
    }
  } : {
    // 正常模式
    outDir: env.VITE_OUT_DIR || "dist"
  };
  return {
    envDir: pathResolve("config"),
    base: env.VITE_BASE_PATH,
    plugins: [
      vue(),
      vueJsx(),
      vitePluginSutpcLibStaticImport(),
      vitePluginSutpcLessDeep(),
      vitePluginSutpcCommon({
        noOnlineIconify: true
      }),
      vitePluginPurgeIcons(),
      vitePluginSutpcIconPark(),
      vite_plugin_sutpc_public_path_default(publicPath),
      createSvgIconsPlugin(),
      WindiCSS(),
      ViteEjsPlugin({
        title: env.VITE_APP_TITLE
      }),
      viteCompression({
        threshold: 1024 * 2,
        // 对大于 2kb 的文件进行压缩
        filter: /.(js|mjs|json|css|html|geojson)$/i,
        disable: false
        //是否禁用压缩，默认为 false
      })
      // isBuild &&
      //   rollupPluginVisualizer({
      //     emitFile: true, //是否被触摸
      //     filename: 'analyze.html', //生成分析网页文件名
      //     open: true, //在默认用户代理中打开生成的文件
      //     gzipSize: true, //从源代码中收集 gzip 大小并将其显示在图表中
      //     brotliSize: true //从源代码中收集 brotli 大小并将其显示在图表中
      //   })
    ],
    define: {
      "process.env": {}
    },
    resolve: {
      extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".less", ".css"],
      alias: [
        // {
        //   find: 'vue-i18n',
        //   replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
        // },
        {
          find: /\@\//,
          replacement: `${pathResolve("src")}/`
        }
      ]
    },
    css: {
      preprocessorOptions: {
        less: {
          javascriptEnabled: true,
          globalVars: {
            publicPath
          }
        }
      }
    },
    build: {
      ...buildOptions,
      rollupOptions: {
        // 确保外部化处理那些你不想打包进库的依赖
        external: env.VITE_APP_MODE === "LIB" ? ["vue", "vue-router", "pinia", "echarts"] : [],
        output: {
          // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
          globals: {
            vue: "Vue",
            "vue-router": "VueRouter",
            pinia: "Pinia",
            echarts: "echarts",
            "element-plus": "ElementPlus"
          }
        },
        plugins: [
          env.VITE_APP_MODE === "LIB" ? externalGlobals({
            vue: "Vue",
            "vue-router": "VueRouter",
            pinia: "Pinia",
            echarts: "echarts",
            "element-plus": "ElementPlus",
            "vue-i18n": "VueI18n"
            // '@sutpc/axios': 'request'
          }) : null
        ]
      },
      sourcemap: env.VITE_SOURCEMAP === "true" ? "inline" : false,
      reportCompressedSize: false,
      chunkSizeWarningLimit: 2e3,
      minify: "terser",
      terserOptions: {
        compress: {
          drop_debugger: env.VITE_DROP_DEBUGGER === "true",
          drop_console: env.VITE_DROP_CONSOLE === "true"
        }
      }
    },
    server: {
      host: "0.0.0.0",
      proxy: {
        [env.VITE_TESPBASE_PATH]: {
          target: env.VITE_TESP_API_BASEPATH,
          changeOrigin: true
          // rewrite: path => path.replace(/^\/web\/tespbiz-prjlib/, '')
        },
        [env.VITE_FILE_PROXY]: {
          target: `http://10.3.4.149:9000`,
          changeOrigin: true,
          rewrite: (path) => path.replace(new RegExp("^" + env.VITE_FILE_PROXY), "")
        },
        ["/bizapp/" + env.VITE_APP_KEY + "/api/"]: {
          target: `http://10.3.4.193:9601`,
          changeOrigin: true,
          rewrite: (path) => path.replace(new RegExp("^/bizapp/" + env.VITE_APP_KEY + "/api"), "")
        },
        ["/portal/api/"]: {
          target: `http://10.3.4.193:10000`,
          changeOrigin: true,
          rewrite: (path) => path.replace(new RegExp("^/portal/api"), "")
        },
        ["/tiannetST/"]: {
          // target: `http://172.16.0.198:12085/api/ps-show`,
          target: `http://111.160.76.111:10000/api/ps-show`,
          changeOrigin: true,
          rewrite: (path) => path.replace(new RegExp("^/tiannetST/"), "")
        }
      }
    },
    optimizeDeps: {
      include: [
        "vue",
        "vue-router",
        "lodash-es",
        "element-plus/es/locale/lang/zh-cn",
        "element-plus/es/locale/lang/en",
        "@iconify/iconify",
        "@sutpc/zebra",
        "@sutpc/vue3-ec-resize",
        "axios",
        "qs",
        "echarts",
        "vue-i18n"
      ]
    }
  };
};
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAidml0ZS1wbHVnaW4tc3V0cGMtcHVibGljLXBhdGgudHMiXSwK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ogJ1Z1ZVJvdXRlcicsXG4gICAgICAgICAgICBwaW5pYTogJ1BpbmlhJyxcbiAgICAgICAgICAgIGVjaGFydHM6ICdlY2hhcnRzJyxcbiAgICAgICAgICAgICdlbGVtZW50LXBsdXMnOiAnRWxlbWVudFBsdXMnXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBwbHVnaW5zOiBbXG4gICAgICAgICAgZW52LlZJVEVfQVBQX01PREUgPT09ICdMSUInXG4gICAgICAgICAgICA/IGV4dGVybmFsR2xvYmFscyh7XG4gICAgICAgICAgICAgICAgdnVlOiAnVnVlJyxcbiAgICAgICAgICAgICAgICAndnVlLXJvdXRlcic6ICdWdWVSb3V0ZXInLFxuICAgICAgICAgICAgICAgIHBpbmlhOiAnUGluaWEnLFxuICAgICAgICAgICAgICAgIGVjaGFydHM6ICdlY2hhcnRzJyxcbiAgICAgICAgICAgICAgICAnZWxlbWVudC1wbHVzJzogJ0VsZW1lbnRQbHVzJyxcbiAgICAgICAgICAgICAgICAndnVlLWkxOG4nOiAnVnVlSTE4bidcbiAgICAgICAgICAgICAgICAvLyAnQHN1dHBjL2F4aW9zJzogJ3JlcXVlc3QnXG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICA6IG51bGxcbiAgICAgICAgXVxuICAgICAgfSxcbiAgICAgIHNvdXJjZW1hcDogZW52LlZJVEVfU09VUkNFTUFQID09PSAndHJ1ZScgPyAnaW5saW5lJyA6IGZhbHNlLFxuICAgICAgcmVwb3J0Q29tcHJlc3NlZFNpemU6IGZhbHNlLFxuICAgICAgY2h1bmtTaXplV2FybmluZ0xpbWl0OiAyMDAwLFxuICAgICAgbWluaWZ5OiAndGVyc2VyJyxcbiAgICAgIHRlcnNlck9wdGlvbnM6IHtcbiAgICAgICAgY29tcHJlc3M6IHtcbiAgICAgICAgICBkcm9wX2RlYnVnZ2VyOiBlbnYuVklURV9EUk9QX0RFQlVHR0VSID09PSAndHJ1ZScsXG4gICAgICAgICAgZHJvcF9j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